/*封装本地存储数据域读取数据方法*/
/*将menuList设置到本地*/
import { List } from 'postcss/lib/list'

export const SET_MENULIST = (menuList: List) => {
  sessionStorage.setItem('menuList', JSON.stringify(menuList))
}
//////////////////////////////////////////////////////////////////

/*从本地，获取MENULIST*/
export const GET_MENULIST = () => {
  return JSON.parse(sessionStorage.getItem('menuList'))
}

//////////////////////////////////////////////////////////////
/*从本地，清除MENULIST*/
export const REMOVE_MENULIST = () => {
  sessionStorage.removeItem('menuList')
}
